<script type="text/javascript" language="javascript">
		$(document).ready(function () {
	$(document).ready(function(){
		$("#frmregister").validate({
			rules: {			 
				email: {
					required: true,
					email: true,
				},
				password:{
					required:true
				},
				firstname:{
					required: true
				}
			},
			messages: {
			firstname: "Please input here",
		     password: "Please specify your name",
		     email: {
		       required: "We need your email address to contact you",
		       email: "Your email address must be in the format of name@domain.com"
		     }
		   }
		})
	});</script>
     <?php
       echo $this -> notice;
    ?> 
<div class="register_form">
                <div class="form_subtitle">Thông tin có dấu (*) là bắt buộc</div>
                 <form name="frmregister" method="post" action=""> 
                                     <div class="form_row_regis">
					<label class="contact_regis"><strong>Tên đầy đủ: (*)</strong></label>
                    <input type="text" name="txtName" id="txtName" class="contact_input_regis"/>
                    <?php
                    echo $this -> notice7;
                    ?>
                    </div>  
                    <div class="form_row_regis">
                    <label class="contact_regis"><strong>Giới tính:(*)</strong></label>  
                    <select name="selGender">
                        <option value="">Chọn giới tính</option>
                        <option value="Nam">Nam</option>
                        <option value="Nữ">Nữ</option>
                    </select>
                    <?php
                    echo $this -> notice6;
                    ?>
                    </div>       
                    <div class="form_row_regis">
                    <label class="contact_regis"><strong>Email: (*)</strong></label>
                    <input type="text" name="txtEmail" id="txtEmail" class="contact_input_regis"/>
                    <?php
                    echo $this -> notice5;
                    ?>
                    </div>
                    <div class="form_row_regis">
					<label class="contact_regis"><strong>Nhập lại Email: (*)</strong></label>
                    <input type="text" name="txtReEmail" id="txtReEmail" class="contact_input_regis"/>
                    </div>
                    <div class="form_row_regis">
                    <label class="contact_regis"><strong>Password: (*)</strong></label>
                    <input type="password" name="txtPassword" id="txtPassword" class="contact_input_regis" />
                    <?php
                    echo $this -> notice4;
                    ?>
                    </div> 
                     <div class="form_row_regis">
                    <label class="contact_regis"><strong>Nhập lại Password: (*)</strong></label>
                    <input type="password" name="txtRepassword" id="txtRepassword" class="contact_input_regis" />
                    </div> 
                    
                    <div class="form_row_regis">
                    <label class="contact_regis"><strong>Số điện thọai: (*)</strong></label>
                    <input type="text" name="txtPhone" id="txtPhone" class="contact_input_regis" />
                    <?php
                    echo $this -> notice3;
                    ?>
                    </div>
                    
                    <div class="form_row_regis">
                    <label class="contact_regis"><strong>Công ty:</strong></label>
                    <input type="text" name="txtCompany" id="txtCompany" class="contact_input_regis" />
                    </div>
                    
                    <div class="form_row_regis">
                    <label class="contact_regis"><strong>Mã số thuế:</strong></label>
                    <input type="text" name="txtTaxCode" id="txtTaxCode" class="contact_input_regis" />
                    </div>  
                    
                     <div class="form_row_regis">
                        <label class="contact_regis"><strong>Tỉnh/Thành phố:(*)</strong></label>                    
    		              <select name="selProvince" id="selProvince" onchange="loadDistrict(this.value)">
                    			<option selected="selected">Chọn tỉnh/thành</option>
                    			<?php foreach ($this->listProvinces as $key => $value) {
                    				?>
                    				<option value="<?php echo $value['ProvinceId']; ?>"><?php echo $value['ProvinceName']; ?></option>
                    				<?php
									}
								?>
    		              </select>	
                      </div>  	
		          <div id="generatedistrict" class="form_row_regis">
                  <?php
                    echo $this -> notice2;
                    ?></div>
          		  <div class="form_row_regis">
                        <label class="contact_regis"><strong>Địa chỉ chi tiết:(*)</strong></label>
            		<input type="text" name="txtAddress" id="txtAddress" class="contact_input_regis"/>   
                    <?php
                    echo $this -> notice1;
                    ?>                             
                  </div>  
                    <div class="form_row_regis">
                        <div class="terms">
                        <input type="checkbox" name="checkterms" />
                        I agree to the <a href="#">terms &amp; conditions</a>                                             
                         </div>
                    </div> 

                    
                    <div class="form_row_regis">
                    <input type="submit" name="submit" class="button" value="register" />
                    </div> 
      </form>     
      <span id="errordetail" ></span>
    